package com.hxzy.shop.commodity.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.PositiveOrZero;
import java.math.BigDecimal;

@Data
@ApiModel("更新药品")
public class DrugUpdateReq {


    @ApiModelProperty(value = "药品id")
    private Long id;

    @ApiModelProperty(value = "统一零售价")
    @Min(value = 0,message = "价格有误！")
    private BigDecimal uniformRetailPrice;

    @ApiModelProperty(value = "库存")
    @PositiveOrZero(message = "库存数量不能为负")
    private Integer stock;

    @ApiModelProperty(value = "上架状态 true上架 false 下架")
    private Boolean state;

    @ApiModelProperty(value = "门店id")
    private Long storeId;
}